"""@file
   Main entry for syspyw application.
   
   @par license 
   Copyright 2012 Lu, Ken. All rights reserved.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 
   @author: Lu, Ken (bluewish.ken.lu@gmail.com)
"""

import wx
import frame

class syspyw_app(wx.App):
    
    def __init__(self, app_path, name, version):
        self._app_path = app_path
        self._app_name = name
        self._app_version = version
        wx.App.__init__(self, False)
        
    def OnInit(self):
        self.SetAppName("Syspy")
        
        self._frame = frame.syspyw_frame(None)
        self._frame.Show()
        return True
        
    def GetAppPath(self):
        return self._app_path
    
    def GetAppName(self):
        return self._app_name
    
    def GetAppVersion(self):
        return self._app_version